<ui:composition
 xmlns="http://www.w3.org/1999/xhtml"
 xmlns:ui="http://java.sun.com/jsf/facelets"
 xmlns:f="http://java.sun.com/jsf/core"
 xmlns:h="http://java.sun.com/jsf/html"
 xmlns:rich="http://richfaces.org/rich"
 template="/template.xhtml">
 <ui:define name="center">
	<rich:dataTable
	  value="#{boutiqueBacking.books}"
	  var="book" styleClass="dataTable2">
	  <f:facet name="header">#{boutiqueBacking.category.title}</f:facet>
	  <h:column>
	  <f:facet name="header">Titre</f:facet>
	   <h:commandLink
	    action="#{boutiqueBacking.selectBook(book.id)}"
	    immediate="true">
	    <h:outputText value="#{book.title}" />
	   </h:commandLink>
	  </h:column>
	  <h:column>
	  <f:facet name="header">Prix</f:facet>
	    <h:outputText value="#{book.price}" />
	  </h:column>
	 </rich:dataTable>
 </ui:define>
</ui:composition>
